home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1980-07-24 | 7.1 KB | 308 lines |
- '
- ' *******************
- ' * NINJA MISSION *
- ' *******************
- '
- ' A Public Domain game by Fernando Bartra (1995)
- '
- '
- GAMEINTRO:
- ' SN=Sessions UN=unarmed Bo=bo ST=shuriken star SH=shadows
- SN=2 : UN=0 : BO=0 : ST=0 : SH=0
- ' LI=life ED=enemy damage MO=money REI=princess stat MA=magic bo
- LI=100 : MO=0 : REI=0 : MA=0
- Cls
- For A=0 To 2
- Print : Centre ""
- Print : Centre ""
- Next A
- Pen 0
- Curs Off : Centre "'AceCracker'"
- Print
- Print : Centre " "
- Print
- Print : Centre "Fernando Bartra"
- Print
- Print : Centre "presents"
- Set Rainbow 1,1,4097,"","",""
- For Y=0 To 4095
- Rain(1,Y)=Y
- Next Y
- For C=0 To 4095-255
- Rainbow 1,C,40,255
- Next C
- Print
- Print
- Centre "NINJA MISSION"
- Wait Key
- Cls
- Centre "Instructions:"
- Print " "
- Print " "
- Print " At beginning of game, go to the"
- Print "temple to train your skills before"
- Print "you fight. You can train a skill by"
- Print "pressing the number of the skill shown"
- Print "on screen. Practice different skills"
- Print "and try them on fight. The easiest"
- Print "mission is fighting the punk, try that"
- Print "before going on to harder ones."
- Print " You will have to find for yourself"
- Print "what missions to do later and in which"
- Print "order."
- Print " Upon succeeding in a mission you"
- Print "will get a practice session and a cash"
- Print "prize to buy life energy."
- Print " "
- Print " This is a role-playing game."
- Print " Good Luck rescuing the princess!!!"
- Print " "
- Print " "
- Centre "press any key"
- Wait Key
- Cls
- Print " If you like this game and want to"
- Print "send me a line or suggestions on how"
- Print "to improve the game, write to me at"
- Print " "
- Print " Fernando Bartra"
- Print " e-mail address:"
- Print " fer007@scri.fsu.edu"
- Print " "
- Print " Any ideas will be appreciated."
- Print " "
- Print " "
- Centre "press any key to start"
- Wait Key
- ' -----------------> Load Title pic and music <---------------
- Cls
- 'Load Iff "Ninja Mission:NinjaTitle.pic",1
- Wait 10
- Unpack 2 To 0
- Wait Key
- '-----------------------------> Temple Menu
- TEMPLE:
- 'Load Iff "Ninja Mission:Temple.pic",1
- Unpack 3 To 0
- Do
- While K$=""
- K$=Inkey$
- Wend
- If K$="1" Then K$="" : Goto TRAINMENU
- If K$="2" Then K$="" : Goto MISSIONMENU
- K$=""
- Loop
- '-----------------------------------> Train menu
- TRAINMENU:
- 'Load Iff "Ninja Mission:TrainMenu.pic",1
- Unpack 4 To 0
- Locate 18,5 : Print UN
- Locate 12,8 : Print BO
- Locate 12,11 : Print ST
- Locate 12,13 : Print SH
- Locate 12,22 : Print SN
- Do
- While K$=""
- K$=Inkey$
- Wend
- If K$="1" Then K$="" : Goto UADD
- If K$="2" Then K$="" : Goto BADD
- If K$="3" Then K$="" : Goto EADD
- If K$="4" Then K$="" : Goto SADD
- If K$="5" Then K$="" : Goto DISKMENU
- If K$="6" Then K$="" : Goto MISSIONMENU
- K$=""
- Loop
- ' add unarmed skill
- UADD:
- If SN<1 Then Goto TRAINMENU
- If UN=3 Then Goto TRAINMENU
- SN=SN-1 : UN=UN+1 : Goto TRAINMENU
- ' add bo skill
- BADD:
- If SN<1 Then Goto TRAINMENU
- If BO=3 Then Goto TRAINMENU
- SN=SN-1 : BO=BO+1 : Goto TRAINMENU
- ' add shuriken (Estrella) skill
- EADD:
- If SN<1 Then Goto TRAINMENU
- If ST=3 Then Goto TRAINMENU
- SN=SN-1 : ST=ST+1 : Goto TRAINMENU
- ' add hide in shadows skill
- SADD:
- If SN<1 Then Goto TRAINMENU
- If SH=3 Then Goto TRAINMENU
- SN=SN-1 : SH=SH+1 : Goto TRAINMENU
- '--------------------------------------> Disk Menu
- DISKMENU:
- 'Load Iff "Ninja Mission:DiskMenu.pic",1
- Unpack 5 To 0
- Wait Key
- Goto TRAINMENU
- '--------------------------------------> Mission menu
- MISSIONMENU:
- E=1 : M$="1-2-3-4 fight"
- 'Load Iff "NINJA Mission:MissionMenu.pic",1
- Unpack 6 To 0
- K$=""
- Do
- While K$=""
- K$=Inkey$
- Wend
- If K$="1" Then Goto PUNKMISSION
- If K$="2" Then Goto SWORDMISSION
- If K$="3" Then Goto PRINCESSMISSION
- If K$="4" Then Goto WHALEMISSION
- If K$="5" Then Goto BUYMISSION
- K$=""
- Loop
- '--------------------------------> Punk Mission
- PUNKMISSION:
- 'PU=punk life ED=enemy damage CP=cash prize
- PU=100 : ED=15 : CP=10
- 'Load Iff "Ninja Mission:Punk Vs Ninja.pic",1
- Unpack 7 To 0
- Goto FIGHT
- '
- '----------------------- Fight
- FIGHT:
- If LI<0 Then LI=0
- If PU<0 Then PU=0
- Locate 1,23 : Print "life" : Locate 6,23 : Print LI;"%"
- Locate 12,23 : Print "enemy" : Locate 18,23 : Print PU;"%"
- Locate 24,23 : Print M$
- If LI<1 Then Goto VPUNK
- If PU<1 Then Goto VNINJA
- K$=""
- Do
- While K$=""
- K$=Inkey$
- Wend
- If K$="1" Then K$="" : Goto UPUNK
- If K$="2" Then K$="" : Goto BPUNK
- If K$="3" Then K$="" : Goto SPUNK
- If K$="4" Then K$="" : Goto HPUNK
- K$=""
- Loop
- '----lose, win, and weapons routine
- VPUNK:
- Wait 100
- Pen 0
- Locate 5,0 : Print "you lost the fight"
- If REI=1 Then REI=REI-1
- If MA=2 Then MA=0
- Wait Key
- Locate 5,0 : Print "game over, press a key to restart"
- Wait Key
- Goto GAMEINTRO
- VNINJA:
- Wait 100
- Pen 0
- Locate 5,0 : Print "you won the fight!!"
- Wait Key
- 'Load Iff "Ninja Mission:Victory.pic",1
- Unpack 8 To 0
- SN=SN+1 : LI=LI+100 : MO=MO+CP
- Wait Key
- If MA=2 Then Goto MAGICBO
- If REI=1 Then REI=2 : Unpack 16 To 0 : Wait Key
- Goto TEMPLE
- UPUNK:
- M$="1-UNARMED "
- If UN=0 Then DAM=5
- If UN=1 Then DAM=10
- If UN=2 Then DAM=15
- If UN=3 Then DAM=20
- LI=LI-ED : PU=PU-DAM
- Goto FIGHT
- BPUNK:
- M$="2-BO "
- If BO=0 Then DAM=5
- If BO=1 Then DAM=20
- If BO=2 Then DAM=25
- If BO=3 Then DAM=30
- If MA=1 Then DAM=DAM+100
- LI=LI-ED : PU=PU-DAM
- Goto FIGHT
- SPUNK:
- If E<1 Then M$="no more stars" : LI=LI-ED : Goto FIGHT
- M$="3-shuriken "
- If ST=0 Then DAM=20
- If ST=1 Then DAM=35
- If ST=2 Then DAM=40
- If ST=3 Then DAM=45
- LI=LI-ED : PU=PU-DAM : E=E-1
- Goto FIGHT
- HPUNK:
- M$="4-Shadow attack"
- If SH=0 Then DAM=0
- If SH=1 Then DAM=15
- If SH=2 Then DAM=35
- If SH=3 Then DAM=70
- LI=LI-ED : PU=PU-DAM
- Goto FIGHT
- '
- '--------------------------------> Sword Mission
- SWORDMISSION:
- 'Load Iff "Ninja Mission:SwordMission.pic",1
- Unpack 9 To 0
- Wait Key
- 'Load Iff "Ninja Mission:Samurai Vs Ninja.pic",1
- Unpack 10 To 0
- 'PU=enemys energy ED=enemy damage CP=cash prize
- PU=200 : ED=60 : CP=30
- If MA=0 Then MA=2
- Goto FIGHT
- '
- '-------------------------------------> Princess Mission
- PRINCESSMISSION:
- 'Load Iff "Ninja Mission:CastleMission.pic",1
- Unpack 11 To 0
- Wait Key
- 'PU=enemy energy ED=enemy damage CP=cash prize REI=princess count
- PU=400 : ED=100 : CP=100 : REI=REI+1
- 'Load Iff "Ninja Mission:Castlefight.pic",1
- Unpack 12 To 0
- Goto FIGHT
- '
- '----------------------------------------> Whales Mission
- WHALEMISSION:
- 'Load Iff "Ninja Mission:WhaleMission.pic",1
- Unpack 13 To 0
- Wait Key
- 'PU=enemy energy ED=enemy damage CP=cash prize
- PU=300 : ED=80 : CP=50
- 'Load Iff "Ninja Mission:whalefight.pic",1
- Unpack 14 To 0
- Pen 6
- Goto FIGHT
- '
- '----------------------------------------> Buy Mission
- BUYMISSION:
- 'Load Iff "Ninja Mission:buymission.pic",1
- Unpack 15 To 0
- Locate 0,17 : Print "You have ";MO;" money"
- Locate 0,18 : Print "You need 30 dollars to buy life energy"
- Wait Key
- If MO<30 Then Goto NOMONEY
- Locate 0,20 : Print "you buy life energy"
- MO=MO-30 : LI=LI+300
- Goto MISSIONMENU
- '
- NOMONEY:
- Locate 0,20 : Print "you dont have enough money to buy"
- Wait Key
- Goto MISSIONMENU
- '
- MAGICBO:
- MA=1
- Cls
- Pen 0
- Print ""
- Print " You didn't find the magic sword"
- Print ""
- Print " but you found a magic bo."
- Print ""
- Print " With the magic bo you have the power!!"
- Wait Key
- Goto TEMPLE